﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Modules.bandits {
    import Classes.*;
    import Classes.sim.*;
    import Classes.actions.*;

    public class ArrestActionSelection implements IActionSelection {

        public static const STATE_LOOPING:String = "looping";
        public static const STATE_ARREST:String = "arrest";
        public static const STATE_DONE:String = "done";

        public var m_isCop:Boolean;
        public var m_npc:NPC;
        public var m_state:String;
        public var m_arrestState:String;

        public function ArrestActionSelection(_arg1:NPC, _arg2:Boolean, _arg3:String){
            this.m_isCop = _arg2;
            this.m_npc = _arg1;
            this.m_state = STATE_LOOPING;
            this.m_arrestState = _arg3;
        }
        public function getNextActions():Array{
            var _local1:String = (this.m_isCop) ? this.m_arrestState : "idle";
            return ([new ActionPlayAnimationOneLoop(this.m_npc, _local1)]);
        }

    }
}//package Modules.bandits 
